package com.ftf.tp.message.application.dto.message;

import com.ftf.tp.common.domain.BaseDomainEvent;
import com.ftf.tp.common.constants.DomainEventEnum;
import com.ftf.tp.common.constants.EventStatusEnum;
import com.ftf.tp.common.core.utils.SnowIdUtils;
import com.ftf.tp.message.application.dto.message.domain.ActionEvent;

import java.time.LocalDateTime;

/**
 * 点赞事件
 *
 * @author tanghao
 * @date 2021/11/28
 */
public class SupportMessage extends BaseDomainEvent<ActionEvent> {

    public SupportMessage(ActionEvent actionEvent) {
        super(SnowIdUtils.uniqueLong(),
                actionEvent.getId(),
                DomainEventEnum.ARTICLE_PUBLISH,
                EventStatusEnum.PENDING,
                LocalDateTime.now(),
                actionEvent);
    }

}
